package com.zjcode.cdcer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zjcode.cdcer.model.CerDemoInfo;

import java.util.LinkedHashMap;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CerDemoInfoMapper extends BaseMapper<CerDemoInfo> {

    int deleteByPrimaryKey(String id);

    int insertSelective(CerDemoInfo record);

    CerDemoInfo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CerDemoInfo record);

    int updateByPrimaryKey(CerDemoInfo record);

    List<LinkedHashMap<String, Object>> listByPage();

    int insertList(@Param("list")List<CerDemoInfo> list);

    List<CerDemoInfo> selectAllByDeletedOrderByInsertDatetimeDesc(@Param("deleted")Integer deleted);

    List<LinkedHashMap<String,Object>> getAllTestData();
}
